package com.alibaba.shopping_goods_service.mapper;

import com.alibaba.shopping_common.pojo.Specification;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * Specification mapper接口
 */
public interface SpecificationMapper extends BaseMapper<Specification> {

    /**
     * 根据规格ID查询规格
     * @param id
     * @return
     */
    Specification findById(Long id);

    /**
     * 根据产品类型ID查询规格
     * @param productTypeId
     * @return
     */
    List<Specification> findByProductTypeId(Long productTypeId);
}
